﻿@namespace FluentCMS.Web.Plugins

@if (Policies != null && Policies.Count > 0)
{
    <FormField Label="@Label">
        @{
            var index = 0;
        }
        @foreach (var policy in Value)
        {
            var i = index++;
            <div>
                <Divider>@Policies[i].Area</Divider>
                <FormCheckboxGroup @bind-Value="policy.Actions" Data="@Policies[i].Actions" @key="@Policies[i]" />
            </div>
        }
    </FormField>
}
